#define _CRT_SECURE_NO_WARNINGS 1
#include<string>
#include<vector>
#include<iostream>
#include<algorithm>
using namespace std;

string test01()
{
    string a("11");
    string b("1");
    reverse(a.begin(), a.end());
    reverse(b.begin(), b.end());
    size_t t = 0, cur = 0;
    size_t s1 = a.size(), s2 = b.size();
    string ret;
    while (cur < s1 || cur < s2 || t != 0)
    {
        if (cur < s1 && cur < s2)
            t += ((a[cur] - '0') + (b[cur] - '0'));
        ret += ((t % 2) + '0');
        t = t / 2;
        cur++;
    }
    reverse(ret.begin(), ret.end());
    return ret;
}

int main()
{
	test01();
	return 0;
}